package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.Set;


/**
 * 生产BOM用料预算单据对象 查询条件类
 *
 * @author qijian
 * @date 2022-05-17
 */

@Data
@ToString
@TableName("main_bom_material_pre")
public class BomMaterialPreQuery {

    @WhereType(filed = "id", sort = true)
    private Long id;
    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
    @WhereType(filed = "code")
    private String code;
    @WhereType(filed = "bom_id")
    private Long bomId;
    @WhereType(filed = "item_name")
    private String itemName;
    @WhereType(filed = "issue_id")
    private Long issueId;
    @WhereType(filed = "issue_nick_name")
    private String issueNickName;
    @WhereType(filed = "status")
    private String status;
    @WhereType(filed = "approval_by")
    private String approvalBy;
    @WhereType(filed = "approval_time", type = WhereTypeEnum.BETWEEN)
    private Date[] approvalTime;
    @WhereType(filed = "approval_status")
    private ApprovalDescriptionEnum approvalStatus;
    @WhereType(filed = "approval_status", type = WhereTypeEnum.NEQ)
    private ApprovalDescriptionEnum approvalStatusNot;
}
